package io;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-08-15
 * Time: 17:27
 */
public class Demo6 {
    public static void main(String[] args) {
        File file = new File("./abc");
        boolean tf = file.mkdir();//创建File对象代表的目录
        System.out.println(tf);

        File file1 = new File("./qwe/rty/uio");
        boolean tf1 = file1.mkdirs();//创建File对象代表的目录，如果有必要，会创建中间目录。
        System.out.println(tf1);
    }
}
